projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0534330
)
notebook: inform the theme to draw borders when requested
author
William Jon McCann
<william.jon.mccann@gmail.com>
Fri, 4 Oct 2013 22:01:31 +0000
(18:01 -0400)
committer
William Jon McCann
<william.jon.mccann@gmail.com>
Fri, 4 Oct 2013 22:14:25 +0000
(18:14 -0400)
When the show-border property is TRUE ask the theme to draw
borders on the notebook header.
gtk/gtknotebook.c
patch
|
blob
|
history
diff --git
a/gtk/gtknotebook.c
b/gtk/gtknotebook.c
index 0f113c4cc0bbb9af6ce746ee70546b5976b39a7e..f958d8229b7829c9773ddd30a0882b0cf7c36901 100644
(file)
--- a/
gtk/gtknotebook.c
+++ b/
gtk/gtknotebook.c
@@
-5240,6
+5240,8
@@
gtk_notebook_paint (GtkWidget *widget,
}
gtk_style_context_add_class (context, GTK_STYLE_CLASS_HEADER);
+ if (priv->show_border)
+ gtk_style_context_add_class (context, GTK_STYLE_CLASS_FRAME);
gtk_render_background (context, cr,
header_x, header_y, header_width, header_height);
gtk_render_frame (context, cr,